package com.lpit.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class ArticleManagementDto {
    /**
     * 当前页
     */
    private Integer page;
    /**
     * 每页显示的条数
     */
    private Integer pageSize;
    /**
     * 用户的ID
     */
    private Long userId;
    /**
     * 状态
     */
    private String status;
    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;
    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date finishTime;
    /**
     * 标题
     */
    private String title;

    private String beginString;

    private String finishString;
}
